package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author Xiao
 * @date 2021/9/14
 */
//@Configuration  //定义Spring核心配置类
//@ComponentScan({"com.itheima.dao", "com.itheima.service"})   //定义包扫描路径
//excludeFilters:排除扫描路径中加载的bean，需要指定类别（type）与具体项（classes）
@ComponentScan(value = "com.itheima",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = Controller.class
        ))
public class SpringConfig {
}
